package com.feng.sharedingjdbc.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author yinglong.zhang
 * @description
 * @date 2024-1-19 13:18
 */
@Data
@Entity
@TableName(value = "user")
public class UserEntity implements Serializable {
    @Id
    @TableId(type = IdType.AUTO)
//    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Column(name = "user_name",length = 16)
    private String userName;

    @Column(name = "user_phone",length = 16)
    private String userPhone;

}
